import request from '@/utils/request'

// 查询售后跟单列表
export function listAfterSaleFollow(query) {
  return request({
    url: '/operations/afterSaleFollow/list',
    method: 'get',
    params: query
  })
}

// 查询售后跟单详细
export function getAfterSaleFollow(id) {
  return request({
    url: '/operations/afterSaleFollow/' + id,
    method: 'get'
  })
}

// 新增售后跟单
export function addAfterSaleFollow(data) {
  return request({
    url: '/operations/afterSaleFollow',
    method: 'post',
    data: data
  })
}

// 修改售后跟单
export function updateAfterSaleFollow(data) {
  return request({
    url: '/operations/afterSaleFollow',
    method: 'put',
    data: data
  })
}

// 删除售后跟单
export function delAfterSaleFollow(id) {
  return request({
    url: '/operations/afterSaleFollow/' + id,
    method: 'delete'
  })
}

// 导出售后跟单
export function exportAfterSaleFollow(query) {
  return request({
    url: '/operations/afterSaleFollow/export',
    method: 'post',
    params: query
  })
}

